<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<style>
body {
    margin: 0;
    height: 20000px;
}
div {
    width: 100px;
    height: 100px;
    background-color: green;
}
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}
</style>
<div></div>
<script>
if (window.testRunner)
  testRunner.waitUntilDone();
runAfterLayoutAndPaint(function() {
   window.scrollTo(0, 10000);
   runAfterLayoutAndPaint(function() {
     window.scrollTo(0, 0);
     if (window.testRunner)
       testRunner.notifyDone();
   });
});
</script>

